import React,{Component} from "react";
// import DemoChild1 from './Child1'
class DemoParentChild extends Component {
  
  state = { 
    role:'admin',
    userinfo:{
      name:'zhangsan',
      age:18
    }
   }
  render() { 
    return (
    <>
      <div className="parent">
        <h3>7.1父传子</h3>
        {/* <DemoChild1 role={this.state.role} userinfo={this.state.userinfo}/> */}
      </div>
    </>  
    );
  }
}
 
export default DemoParentChild;